applied patch by John Marshall to make babl extensions build on Windows.
authorMichael Schumacher <schumaml@cvs.gnome.org>
Mon, 12 Mar 2007 20:58:13 +0000 (20:58 +0000)
committerMichael Schumacher <schumaml@src.gnome.org>
Mon, 12 Mar 2007 20:58:13 +0000 (20:58 +0000)
2007-03-12  Michael Schumacher  <schumaml@cvs.gnome.org>

* Makefile.am:
* extensions/Makefile.am: applied patch by John Marshall to make
babl extensions build on Windows. They do not work yet, though. Fixes
bug #409957.

svn path=/trunk/; revision=228

ChangeLog
Makefile.am
extensions/Makefile.am

index 408fd8ccc49583cb5fd2cb3a43bfd6f44fc98d25..c42f8e55e4aa89f382a2b180e6138fdc7c2c211d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-03-12  Michael Schumacher  <schumaml@cvs.gnome.org>
+
+       * Makefile.am: 
+       * extensions/Makefile.am: applied patch by John Marshall to make
+       babl extensions build on Windows. They do not work yet, though. Fixes
+       bug #409957.
+
 2007-03-12  Øyvind Kolås  <pippin@gimp.org>
 
        * babl/babl-fish.c: (fishing_result_examine), (go_fishing),
index 15590d134615388f1ea4e7c63773ec174523aea9..9abfebec678fc8013ccdfd3c42e70a9131abf8ba 100644 (file)
@@ -1,13 +1,7 @@
 AUTOMAKE_OPTIONS = foreign dist-bzip2
 
-if OS_WIN32
-extensions=
-else
-extensions=extensions
-endif
-
 SUBDIRS = babl         \
-         ${extensions} \
+         extensions    \
          tests         \
          docs
 
index ffcb622c77a32dd41cae957926aa29b5b5d9efcb..491d667cd86f3dca97b31189f529afd4d2f1cc8f 100644 (file)
@@ -3,14 +3,16 @@
 
 if OS_WIN32
 no_undefined = -no-undefined
+SOsuf=dll
+libbabldlla=$(top_builddir)/babl/.libs/libbabl-$(BABL_API_VERSION).dll.a
+else
+SOsuf=so
 endif
 
-EXTRA_DIST = $(wildcard *.[ch])
-
-CFILES  = $(wildcard $(srcdir)/*.c)
-SOBJS   = $(subst $(srcdir)/,,$(CFILES:.c=.so))
-
-INSTALLED_ITEMS = $(subst $(srcdir),$(ext_dir),$(CFILES:.c=.so))
+CFILES          = $(wildcard $(srcdir)/*.c)
+SOBJS           = $(subst $(srcdir)/,,$(CFILES:.c=.$(SOsuf)))
+INSTALLED_ITEMS = $(subst $(srcdir),$(ext_dir),$(CFILES:.c=.$(SOsuf)))
+EXTRA_DIST      = $(wildcard *.[ch])
 
 all-local: $(SOBJS)
 
@@ -18,19 +20,19 @@ CFLAGS  += -I $(top_srcdir)/babl -I $(top_srcdir)/extensions -fPIC
 
 LDFLAGS += -shared
 
-LDADD    = $(no-undefined)
+LDADD    = $(no-undefined) $(libbabldlla)
 
-%.so: %.c
+%.$(SOsuf): %.c
        $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDADD)
 
 # if extension needing external libraries are to be # compiled with this make
 # file, each of them can be added according to the this pattern:
-# extra.so: extra.c
+# extra.$(SOsuf): extra.c
 #      $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<  [own compile and link flags]
 
-CIE-Lab.so: CIE-Lab.c
+CIE-Lab.$(SOsuf): CIE-Lab.c
        $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDADD) $(MATH_LIB)
-#lcms.so: lcms.c
+#lcms.$(SOsuf): lcms.c
 #      $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDADD) `pkg-config lcms --cflags --libs`
 #############################################################################